package com.kalua.list.domainmodel;

public class SequenceValueImpl implements SequenceValue {
	
	private long previousValue;
	private long currentValue;
	
	private SequenceValueImpl() { }

	public SequenceValueImpl(	long currentValue, 
												long nextValue) {
		this();
		setPreviousValue(currentValue);
		setCurrentValue(nextValue);
	}

	@Override
	public long getPreviousValue() { return this.previousValue; }
	private void setPreviousValue(long currentValue)  { this.previousValue = currentValue; }

	@Override
	public long getCurrentValue() { return this.currentValue;}
	private void setCurrentValue(long nextValue) {	 this.currentValue = nextValue; }
	
	@Override
	public String toString() 
	{ return this.previousValue + "->" + this.currentValue; }
}